package com.microservices.yucloud.api.service;

import com.microservices.yucloud.api.entity.Email;
import com.microservices.yucloud.api.mapper.EmailMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zy
 * @date 2019-08-15 15:17
 **/
@Slf4j
@Service
public class EmailService {

    @Resource
    private EmailMapper emailMapper;

    public List<Email> selectEmailList(Email email) {
        return emailMapper.selectEmailList(email);
    }

    public List<Email> selectEmailTasks() {
        return emailMapper.selectEmailTasks();
    }

    public void updateEmail(Email email) {
        emailMapper.updateEmail(email);
    }
}
